package com.littcore.saap.assistant.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import java.io.Serializable;

/**
 * <br>
 * Table:tag_assoc<br>
 * @author Hibernate Tools 3.4.0.CR1
 * @version 1.0
 * @since Jul 1, 2015 2:49:55 PM
 */
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@Table(name = "tag_assoc")
public class TagAssoc implements Serializable {
	/**
	 * UID
	 */
	private static final long serialVersionUID = 1L;
	/**
	 */
	private Integer id;

	/**
	 */
	private int tenantId;

	/**
	 */
	private int tagId;

	/**
	 */
	private int recordId;

	public TagAssoc() {
	}

	public TagAssoc(int tenantId, int tagId, int recordId) {
		this.tenantId = tenantId;
		this.tagId = tagId;
		this.recordId = recordId;
	}

	/**  
	 */
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	/**
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**  
	 */

	@Column(name = "TENANT_ID", nullable = false)
	public int getTenantId() {
		return this.tenantId;
	}

	/**
	 */
	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	/**  
	 */

	@Column(name = "TAG_ID", nullable = false)
	public int getTagId() {
		return this.tagId;
	}

	/**
	 */
	public void setTagId(int tagId) {
		this.tagId = tagId;
	}

	/**  
	 */

	@Column(name = "RECORD_ID", nullable = false)
	public int getRecordId() {
		return this.recordId;
	}

	/**
	 */
	public void setRecordId(int recordId) {
		this.recordId = recordId;
	}

}
